﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Bastanteo.Dominio.Representante>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
             <div class="display-field">Tipo de Documento:   <%: Html.DropDownList("TipoDocumento", (IEnumerable<SelectListItem>)TempData["TipoDocumento"])%></div>
            <br />
            <div class="display-field">Numero de Documento:  <%: Html.TextBoxFor(model => model.NumeroDocumento) %> </div>
            <br />
             <div class="display-field">Apellidos:  <%: Html.TextBoxFor(model => model.Apellidos) %> </div>
             <br />
           
             <div class="display-field">Nombres:  <%: Html.TextBoxFor(model => model.Nombres) %> </div>
             <br />

                <div class="editor-label">
               Representa a:
            </div>
           
             <div class="display-field"> <%: Html.DropDownList("Cliente", (IEnumerable<SelectListItem>)TempData["Cliente"])%> </div>
             <br />
           
                 <div class="display-field">Cargo:   <%: Html.DropDownList("Cargo", (IEnumerable<SelectListItem>)TempData["Cargo"])%></div>
            <br />

                  <div class="display-field">Grupo:   <%: Html.DropDownList("Grupo", (IEnumerable<SelectListItem>)TempData["Grupo"])%></div>
            <br />
           
            
            <p>
                <input type="submit" value="Grabar" />
            </p>


        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar al listado", "Index") %>
    </div>

</asp:Content>

